﻿using Abp.Domain.Entities;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace SOEI.Solution.DomainEntities.PurQualificationAudit
{
    /// <summary>
    /// 购资审核申请表主表
    /// </summary>
    [Table("YW_GFZGSCSQXX")]
    public class PurQualificationApply : Entity<string>
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Column("GFZGSCSQBH")]
        public override string Id { get; set; }

        /// <summary>
        /// 购房人类型代码
        /// </summary>
        [Column("GFRLXDM")]
        public string GFRLXDM { get; set; }

        /// <summary>
        ///购房人姓名
        /// </summary>
        [Column("GFRXM")]
        public string GFRXM { get; set; }

        /// <summary>
        ///证件名称
        /// </summary>
        [Column("ZJMC")]
        public string ZJMC { get; set; }

        /// <summary>
        ///证件号码
        /// </summary>
        [Column("ZJHM")]
        public string ZJHM { get; set; }

        /// <summary>
        ///联系电话
        /// </summary>
        [Column("LXDH")]
        public string LXDH { get; set; }

        /// <summary>
        /// 拟购住房地址
        /// </summary>
        [Column("NGZFDZ")]
        public string NGZFDZ { get; set; }

        /// <summary>
        ///户籍所在地
        /// </summary>
        [Column("HJSZD")]
        public string HJSZD { get; set; }

        /// <summary>
        /// 家庭拥有住房情况
        /// </summary>
        [Column("JTYYZFQK")]
        public string JTYYZFQK { get; set; }

        /// <summary>
        ///录入时间
        /// </summary>
        [Column("LRSJ")]
        public DateTime? LRSJ { get; set; }

        /// <summary>
        ///生效时间
        /// </summary>
        [Column("SXSJ")]
        public DateTime? SXSJ { get; set; }

        /// <summary>
        ///申请状态代码
        /// </summary>
        [Column("SQZTDM")]
        public string SQZTDM { get; set; }

        /// <summary>
        /// 房屋编号
        /// </summary>
        [Column("FWBH")]
        public string FWBH { get; set; }

        /// <summary>
        ///合同登记号
        /// </summary>
        [Column("HTDJH")]
        public string HTDJH { get; set; }

        [Column("SM")]
        public string SM { get; set; }

        [Column("YWLXDM")]
        public string YWLXDM { get; set; }

        [Column("DWBH")]
        public string DWBH { get; set; }

        /// <summary>
        ///录入人编号
        /// </summary>
        [Column("LRRBH")]
        public string LRRBH { get; set; }

        /// <summary>
        ///录入人姓名
        /// </summary>
        [Column("LRRXM")]
        public string LRRXM { get; set; }

        [Column("QYDM")]
        public string QYDM { get; set; }

        /// <summary>
        ///限购类型(0:2011年限购类型,1:2017年限购类型)
        /// </summary>
        [Column("XGLX")]
        public string XGLX { get; set; }

        /// <summary>
        ///资料审查状态代码(00:空,01:审查通过，02：审查未通过)
        /// </summary>
        [Column("ZLSCZTDM")]
        public string ZLSCZTDM { get; set; }

        /// <summary>
        ///1 本市，0非本市 （家庭成员里有一个本市则为本市） 
        /// </summary>
        [Column("ISBS")]
        public string ISBS { get; set; }

        /// <summary>
        ///删除人编号
        /// </summary>
        [Column("SCRBH")]
        public string SCRBH { get; set; }

        /// <summary>
        ///删除人姓名
        /// </summary>
        [Column("SCRXM")]
        public string SCRXM { get; set; }

        /// <summary>
        ///删除时间
        /// </summary>
        [Column("SCSJ")]
        public DateTime? SCSJ { get; set; }

        /// <summary>
        ///资料审查方式代码
        /// </summary>
        [Column("ZLSCFSDM")]
        public string ZLSCFSDM { get; set; }

        /// <summary>
        ///修改人编号
        /// </summary>
        [Column("XGRBH")]
        public string XGRBH { get; set; }

        /// <summary>
        ///修改人名称
        /// </summary>
        [Column("XGRMC")]
        public string XGRMC { get; set; }

        /// <summary>
        ///修改时间
        /// </summary>
        [Column("XGSJ")]
        public DateTime? XGSJ { get; set; }

        /// <summary>
        ///是否导出(1为已导出)
        /// </summary>
        [Column("SFDC")]
        public string SFDC { get; set; }

        /// <summary>
        ///签订委托合同的机构编号
        /// </summary>
        [Column("WTHTJGBH")]
        public string WTHTJGBH { get; set; }

        /// <summary>
        ///提交时间
        /// </summary>
        [Column("TJSJ")]
        public DateTime? TJSJ { get; set; }

        #region ----------------------------------------------------新增----------------------------------------------------

        /// <summary>
        /// 数据来源：XMS-->新模式用来区分老系统
        /// </summary>
        public string SJLY { get; set; }

        /// <summary>
        /// 过期时间(剩余时间)
        /// </summary>
        public string GQSJ { get; set; }

        /// <summary>
        /// 购房情况说明
        /// </summary>
        public string GFQKSM { get; set; }
        
        /// <summary>
        /// 短信验证手机号码
        /// </summary>
        public string DXYZSHHM { get; set; }
        #endregion
    }
}
